<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>文字特效</title>
    <link rel="stylesheet" type="text/css" href="css/base.css" />
</head>
<body style="margin:0px;overflow: hidden;">
    <div class="main" ></div>
</body>
<script type="module">
    import index from './js/index.js';
    //const data = ["没想好","颜色随机","动画也随机","纯前端的代码","最多六个字"];
    const data = ["本项目","由没想好制作","全网唯一","专门送给娜娜","作为","圣诞节礼物","祝我老婆",
    "每天都开心","每天都漂亮","每天都有","花不完的钱","我只爱你三天","今天","明天","每一天"];
    //第一版先把动画写死
    const rotate = ["","C","D","A","C","A","B","A","C","D","C","A","C","D","B"];
    const _index = new index(".main",data,rotate);
    _index.intPage();

    setInterval(()=>{
        let _index = new index(".main",data,rotate);
        _index.intPage();
    },40000)
</script>
</html>